import request from '@/utils/request'

export function list(token,data){
  return request({
    url: 'goupons/coupons/get_select',
    method: 'post',
    params: {token},
    data
  })
}

export function del(token, activity_coupon_id){
  return request({
    url: 'goupons/coupons/delete',
    method: 'post',
    params: {token},
    data: {activity_coupon_id}
  })
}

export function add(token, data){
  console.log(data)
  return request({
    url: 'goupons/coupons/add',
    method: 'post',
    params: {token},
    data
  })
}

export function edit(token, data){
  console.log('nice edit')
  console.log(data)
  return request({
    url: 'goupons/coupons/edit',
    method: 'post',
    params: {token},
    data:data
  })
}
